package com.vincent.dao;

import com.vincent.model.MenuPermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("menuPermissionMapper")
public interface MenuPermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MenuPermission record);

    int insertSelective(MenuPermission record);

    MenuPermission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MenuPermission record);

    int updateByPrimaryKey(MenuPermission record);

    int deleteByPerIds(@Param("perIds") Integer[] perIds);

    int deleteByMenuIds(@Param("ids") Integer []ids);

    List<Integer> getPerIds(@Param("menuId") Integer menuId);

    int insertMenuPers(@Param("menuId") Integer menuId, @Param("perIds") Integer []perIds);

    List<MenuPermission> selectAll();
}